
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(signal LANGUAGES C)

include_directories(../common)

set(COMPILE_ALL OFF)

list(APPEND _sources
    ../common/error.c
    ../common/prexit.c
    01_detach.c
    # 03_getenv1.c
    # 04_getenv2.c
    05_getenv3.c
)

if (COMPILE_ALL)
add_executable(suspend 06_suspend.c ${_sources})
else()
add_executable(atfork 07_atfork.c ${_sources})
endif()
